package com.work7;

import java.util.TreeSet;

public class Test {
    public static void main(String[] args) {
        TreeSet<Student> students = new TreeSet();
        students.add(new Student(16,"itheima"));
        students.add(new Student(16,"itcast"));
        students.add(new Student(16,"传智播客"));
        students.forEach(s->System.out.println(s));
    }
}
